package com.imdroid.logic;

import java.util.Collection;

import com.imdroid.modal.Contact;

import net.orange.architecture.process.IBaseProcess;

public interface IContactProcess extends IBaseProcess {
	/**
	 * Get the contacts by the user id
	 * 
	 * @param user_id
	 *            the user id of the devices
	 * @return the contacts of the devices id
	 * @throws Exception
	 */
	//public Collection getContactByUserId(int user_id) throws Exception;

	/**
	 * Find the contract
	 * 
	 * @param user_id
	 *            the id of the user
	 * @param phone_number
	 *            the phone number of the contact
	 * @return the Contact
	 * @throws Exception
	 */
	public Contact findCotanct(int user_id, String phone_number)
			throws Exception;

	/**
	 * Find the contract
	 * 
	 * @param user_id
	 *            the id of the user
	 * @return the collection of the contacts
	 * @throws Exception
	 */
	public Collection getCotanct(int user_id) throws Exception;
}
